Respect DEB_BUILD_OPTIONS=nocheck
authorRob Browning <rlb@defaultvalue.org>
Sun, 16 Oct 2016 17:43:06 +0000 (12:43 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 24 Oct 2016 17:04:56 +0000 (12:04 -0500)
Thanks to David Bremner for reporting the issue.

debian/rules

index 26bc66a7d80ffcdf6214a85193677037c5ad2168..cca8fdce9cc48cf6b89a4ce9e8d2c33eb74fd0ea 100755 (executable)
@@ -362,9 +362,11 @@ override_dh_auto_build: $(autogen_build_files)
        $(call build_cmd,debian/build-lucid)
 
 override_dh_auto_test:
+  ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
        $(MAKE) -C debian/build-lucid check
        $(MAKE) -C debian/build-nox check
        $(MAKE) -C debian/build-x check
+  endif
 
 define install_common_binpkg_bits
   # args: (1) srcdir (2) pkgdir (3) pkgname (4) bin-suffix